package cn.jjxx.modules.project.service.impl;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.project.entity.LocationOfProvinces;
import cn.jjxx.modules.project.mapper.LocationOfProvincesMapper;
import cn.jjxx.modules.project.service.ILocationOfProvincesService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**   
 * @Title: 省份位置配置
 * @Description: 省份位置配置
 * @author zx
 * @date 2021-03-16 17:12:48
 * @version V1.0   
 *
 */
@Transactional
@Service("locationOfProvincesService")
public class LocationOfProvincesServiceImpl  extends CommonServiceImpl<LocationOfProvincesMapper,LocationOfProvinces> implements  ILocationOfProvincesService {

	@Override
	public boolean insertBatch(List<LocationOfProvinces> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<LocationOfProvinces> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}

	@Override
	public LocationOfProvinces selectQuantity(String provinceCode) {
		return baseMapper.selectQuantity(provinceCode);
	}

	@Override
	public List<LocationOfProvinces> selectInfo(String provinceCode,String cityCode) {
		return baseMapper.selectInfo(provinceCode,cityCode);
	}

	@Override
	public List<LocationOfProvinces> selectCity(String provinceCode) {
		return baseMapper.selectCity(provinceCode);
	}
}
